<script type="text/javascript">
	$(function(){
		EBCMS.admin_index.AddFormSubmit = function AddFormSubmit(){
			if ($('#{:I('domid')}Form').form('validate')) {
				EBCMS.ACT.formSubmit(
					'{:U('setapp')}',
					$('#{:I('domid')}Form').serialize(),
					function(data){
						if (data.status==1) {
							$('#{:I('domid')}').window('destroy');
							EBCMS.MSG.show('添加成功！');
						}else{
							EBCMS.MSG.alert(data.info);
						};
					}
				);
			}else{
				EBCMS.MSG.show('请检查红框处是否填写正确！');
			};
		};
	});
</script>
<form id="{:I('domid')}Form" method="post">
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'center',border:false">
		<div class="easyui-tabs" data-options="fit:true,plain:false,border:false">
			<div title="基本内容" data-options="fit:true,plain:false,border:false" style="padding:10px;">
				<table cellpadding="5" class="form">
					<tbody>
						<tr>
							<th></th>
							<td class="help">{$data.content}</td>
						</tr>
						<tr>
							<th></th>
							<td class="help">请填写appid和appkey</td>
						</tr>
						<tr>
							<th>APPID:</th>
							<td><input class="easyui-textbox" type="text" name="appid" value="{$appinfo.appid}" data-options="required:true,validType:'length[0,80]'" /></td>
						</tr>
						<tr>
							<th>APPKEY:</th>
							<td><input class="easyui-textbox" type="text" name="appkey" value="{$appinfo.appkey}" data-options="required:true,validType:'length[0,80]'" /></td>
						</tr>
						<tr>
							<th></th>
							<td class="help">40位字符串</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	<div data-options="region:'south',border:false">
		<div class="dialog-button" style="text-align:right;border-width:1px 0 0 0;">
			<a class="easyui-linkbutton" data-options="iconcls:'icon-ok'" href="javascript:void(0)" onclick="EBCMS.admin_index.AddFormSubmit();" style="width:80px">提交</a>
			<a class="easyui-linkbutton" data-options="iconcls:'icon-cancel'" href="javascript:void(0)" onclick="$('#{:I('domid')}').window('destroy');" style="width:80px">关闭</a>
		</div>
	</div>
</div>
</form>